<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_wwdg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_wwdg.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__wwdg_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_WWDG_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_WWDG_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="group___w_w_d_g___prescaler.html#ga5a06d85d8f05b96acf6ca74a8c7bff87">   39</a></span>&#160;<span class="preprocessor">#define WWDG_PRESCALER_MIN                  ((uint32_t)0x00000000U) </span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="group___w_w_d_g___prescaler.html#ga019ffdbf52e80813b5a7719ecf2395da">   40</a></span>&#160;<span class="preprocessor">#define WWDG_PRESCALER_MAX                  ((uint32_t)0x000FFFFFU) </span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#define WWDG_WINDOW_MIN                     ((uint8_t)0x00000010U)</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#define WWDG_WINDOW_MAX                     ((uint8_t)0x000000FFU)</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#define WWDG_RELOAD_MIN                     ((uint8_t)0x00000020U)</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#define WWDG_RELOAD_MAX                     ((uint8_t)0x000000FFU)</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">/* Exported macro ------------------------------------------------------------*/</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#define IS_WWDG_PRESCALER_VALUE(VALUE) ((VALUE) &lt;= WWDG_PRESCALER_MAX)</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#define IS_WWDG_WINDOW_VALUE(VALUE) (((VALUE) &gt;= WWDG_WINDOW_MIN) &amp;&amp; \</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">                                     ((VALUE) &lt;= WWDG_WINDOW_MAX))</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#define IS_WWDG_RELOAD_VALUE(VALUE) (((VALUE) &gt;= WWDG_RELOAD_MIN) &amp;&amp; \</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">                                     ((VALUE) &lt;= WWDG_RELOAD_MAX))</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___w_w_d_g.html#ga7130f4dc861b9234b62e73f9f57f89a1">WWDG_DeInit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___w_w_d_g.html#gafeaa2b52c31ba7baca7eb61d2d42e07b">WWDG_SetPrescaler</a>(uint32_t WWDG_Prescaler);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___w_w_d_g.html#gaf44a7bf8bf6b11b41cd89ff521fdd5a5">WWDG_SetWindowValue</a>(uint8_t WindowValue);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___w_w_d_g.html#gac6a088fd6762cf674edb30d9496647f7">WWDG_IT_Cmd</a>(FunctionalState NewState);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___w_w_d_g.html#ga6e44cc35f133b28b9ad861f459bf8d76">WWDG_SetCounter</a>(uint8_t Counter);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___w_w_d_g.html#ga11db23ae498e3905f3640b77e19c176e">WWDG_Cmd</a>(FunctionalState NewState);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;FlagStatus <a class="code" href="group___w_w_d_g.html#ga7df4882d45918b9b8249dfca1e44fabc">WWDG_GetFlagStatus</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___w_w_d_g.html#gabd2b5a6317c2e1a3ab0795838ce59dd2">WWDG_ClearFlag</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;}</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*__WB32L003_WWDG_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___w_w_d_g_html_gac6a088fd6762cf674edb30d9496647f7"><div class="ttname"><a href="group___w_w_d_g.html#gac6a088fd6762cf674edb30d9496647f7">WWDG_IT_Cmd</a></div><div class="ttdeci">void WWDG_IT_Cmd(FunctionalState NewState)</div><div class="ttdoc">Enables or disable the WWDG's interrupt.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:90</div></div>
<div class="ttc" id="group___w_w_d_g_html_ga7130f4dc861b9234b62e73f9f57f89a1"><div class="ttname"><a href="group___w_w_d_g.html#ga7130f4dc861b9234b62e73f9f57f89a1">WWDG_DeInit</a></div><div class="ttdeci">void WWDG_DeInit(void)</div><div class="ttdoc">Deinitializes the WWDG peripheral registers to their default reset values.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:38</div></div>
<div class="ttc" id="group___w_w_d_g_html_ga6e44cc35f133b28b9ad861f459bf8d76"><div class="ttname"><a href="group___w_w_d_g.html#ga6e44cc35f133b28b9ad861f459bf8d76">WWDG_SetCounter</a></div><div class="ttdeci">void WWDG_SetCounter(uint8_t Counter)</div><div class="ttdoc">Sets the WWDG counter value.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:108</div></div>
<div class="ttc" id="group___w_w_d_g_html_ga11db23ae498e3905f3640b77e19c176e"><div class="ttname"><a href="group___w_w_d_g.html#ga11db23ae498e3905f3640b77e19c176e">WWDG_Cmd</a></div><div class="ttdeci">void WWDG_Cmd(FunctionalState NewState)</div><div class="ttdoc">Enables or disables the WWDG peripheral.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:123</div></div>
<div class="ttc" id="group___w_w_d_g_html_gaf44a7bf8bf6b11b41cd89ff521fdd5a5"><div class="ttname"><a href="group___w_w_d_g.html#gaf44a7bf8bf6b11b41cd89ff521fdd5a5">WWDG_SetWindowValue</a></div><div class="ttdeci">void WWDG_SetWindowValue(uint8_t WindowValue)</div><div class="ttdoc">Sets the WWDG window value.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:68</div></div>
<div class="ttc" id="group___w_w_d_g_html_gabd2b5a6317c2e1a3ab0795838ce59dd2"><div class="ttname"><a href="group___w_w_d_g.html#gabd2b5a6317c2e1a3ab0795838ce59dd2">WWDG_ClearFlag</a></div><div class="ttdeci">void WWDG_ClearFlag(void)</div><div class="ttdoc">Clears Early Wakeup interrupt flag.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:152</div></div>
<div class="ttc" id="group___w_w_d_g_html_gafeaa2b52c31ba7baca7eb61d2d42e07b"><div class="ttname"><a href="group___w_w_d_g.html#gafeaa2b52c31ba7baca7eb61d2d42e07b">WWDG_SetPrescaler</a></div><div class="ttdeci">void WWDG_SetPrescaler(uint32_t WWDG_Prescaler)</div><div class="ttdoc">Sets the WWDG Prescaler.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:49</div></div>
<div class="ttc" id="group___w_w_d_g_html_ga7df4882d45918b9b8249dfca1e44fabc"><div class="ttname"><a href="group___w_w_d_g.html#ga7df4882d45918b9b8249dfca1e44fabc">WWDG_GetFlagStatus</a></div><div class="ttdeci">FlagStatus WWDG_GetFlagStatus(void)</div><div class="ttdoc">Checks whether the Early Wakeup interrupt flag is set or not.</div><div class="ttdef"><b>Definition:</b> wb32l003_wwdg.c:142</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
